package com.ridbor001.demo.service;

import com.ridbor001.demo.bean.RDBCourse;
import com.ridbor001.demo.dao.RDBCourseDAO;

import java.sql.SQLException;

public class RDBCourseService {
    RDBCourseDAO dao = new RDBCourseDAO();
    public boolean addCourse(RDBCourse newCourse) throws SQLException {
        return dao.addCourse(newCourse);
    }

    public boolean courseExists(String courseId) throws SQLException {
        return dao.courseExists(courseId);
    }

    public RDBCourse findCourseById(String courseId) throws SQLException {
        return dao.findCourseById(courseId);
    }
}
